<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索</title>
    <link rel="stylesheet" href="../css/sou.css">
</head>

<body>
    <div class="herd">
        <img src="https://book.easou.com.cn/jsp/online/resources/imgs/return.png" alt="" class="zx">
        <img src="https://book.easou.com.cn/jsp/online/resources/imgs/home.png" alt="" class="zxc">
    </div>
    <div class="xia">
        <!-- <div class="wenn">
            <h3>万道龙皇</h3>
            <p>vuuu哦v欧俄并不vu发布iv北大法宝恩储备吕布额比如v吧u女崔ui贝瑞v不i俄波瑞v被</p>
            <a href="">免费阅读</a>
        </div> -->
        
    </div>
</body>
<script src="../js/jquery.min.js"></script>
<script>
    $(".zx").click(function () {
        window.open("../index.html")
    })
    $(".zxc").click(function () {
        window.open("../index.html")
    })
    let a = localStorage.getItem("index")
    console.log(a);
    $.ajax({
        type: "get",
        url:"http://192.168.1.40:3000/xiaoimg",
        data: {
            novel: a
        },
        success: function (response) {
            console.log(response);
            $.each(response.data, function (i, item) {
                var str = `
                    <div class="wenn">
                        <h3>${item.novel}</h3>
                        <p>${item.zhengwen}</p>
                        <a href="${item.lianjie}">免费阅读</a>
                    </div>
                     `
                $(".xia").append(str);
            });
        }
    });
</script>

</html>